from typing import TypedDict, Optional


class IndexRequest(TypedDict):
    index: str
    dim: int
    index_factory: str
    hdfs_path: Optional[str]
    local_path: Optional[str]

